package cn.it.ygh.mapper;

import java.util.List;

import cn.it.ygh.pojo.House;
import cn.it.ygh.pojo.Order;
import cn.it.ygh.pojo.User;

public interface UserMapper {
	
	public User login(User u);                                        //登陆
	
	public void register(User u);                                     //注册
	
	public void delete(int houseId);                                  //删除

	public void modify(User u);                                       //修改
	
	List<House> findAllRecords(int pageStart,int pageSize,String userAccount);           //查找发布记录
	public int findRecordsTotal(String userAccount);
	
	List<Order> findAllOrders(int pageStart,int pageSize);            //查找交易记录
	public int findOrdersTotal();
	
	public void recordModify(House h);                                //修改发布记录
	
	public House getRecordById(int houseId);
	
	public void userImg(User u);
	
	public String getPwdByUserAccount(String userAccount);
}